
package com.catsic.pub.specification;

import com.catsic.base.specification.BaseSpec;
import com.catsic.base.specification.QueryWraper;
import com.catsic.pub.condition.MessageCondition;
import com.catsic.pub.entity.Message;
/**
 * ClassName: MessageSpec
 * Description: MessageSpec
 * date: 2013年4月28日 下午2:30:29
 * author: yangyd
 */
public class MessageSpec extends BaseSpec<Message> {

	public MessageSpec(MessageCondition condition){
		super(condition,true);
	}
	
	/**
	 * @see com.catsic.core.specification.BaseSpec#addCondition(com.catsic.core.specification.QueryWraper)
	 */
	@Override
	protected void addCondition(QueryWraper<Message> queryWraper) {
		addLikeCondition(queryWraper, "title");
		addLikeCondition(queryWraper, "content");
		addEqualCondition(queryWraper, "acceptObjId");
	}
}
